{template header}

<!--{if $webglobal['action']=='findpass'}-->

	<div id="positionBox">
		<div class="left">
			<a href="{WEBURLPATH}/index.php">首页</a>&gt;
			个人用户找回密码
		</div>
	</div>
	<div class="contentInfoBox">
		<div class="linetitle">找回密码</div>
		<div>个人用户找回密码。商家请 <a href="{WEBURLPATH}/login.php?action=comfindpass">点击这里</a> 申请。</div>
		<div class="blankline"></div>
		<!--{if !empty($webglobal[CPM])}-->
			<div class="listulstyle">
				<ul>
					<!--{loop $webglobal[CPM] $tempvalue}-->
					<li class="fcolor">$tempvalue</li>
					<!--{/loop}-->
				</ul>
			</div>
			<div class="blankline"></div>
		<!--{/if}-->
		<form method="post" name="loginform" id="loginform" action="{WEBURLPATH}/login.php?action=findpass&check">
		<table class="datatable" cellspacing="1">
			<tbody>
				<!-- <tr>
					<th>用户名</th>
					<td>
						<input type="text" name="username" size="32" value="{if isset($webglobal['CPP']['username'])}$webglobal['CPP']['username']{/if}" />
					</td>
				</tr> -->
				<tr>
					<th>E-mail</th>
					<td>
						<input type="text" name="email" size="32" value="{if isset($webglobal['CPP']['email'])}$webglobal['CPP']['email']{/if}" />
					</td>
				</tr>
			</tbody>
			<tfoot>
				<tr><th></th><td>
					<button type="submit">发送找回密码邮件</button>
				</td></tr>
			</tfoot>
		</table>
		</form>
	</div>
	<div class="couponRight">
		
	</div>

<!--{elseif $webglobal['action']=='comfindpass'}-->

	<div id="positionBox">
		<div class="left">
			<a href="{WEBURLPATH}/index.php">首页</a>&gt;
			商家找回密码
		</div>
	</div>
	<div class="contentInfoBox">
		<div class="linetitle">找回密码</div>
		<div>商业用户申请找回密码，申请后需要系统审批，审批通过会发送重置密码邮件到商户邮箱。</div>
		<div class="blankline"></div>
		<!--{if !empty($webglobal[CPM])}-->
			<div class="listulstyle">
				<ul>
					<!--{loop $webglobal[CPM] $tempvalue}-->
					<li class="fcolor">$tempvalue</li>
					<!--{/loop}-->
				</ul>
			</div>
			<div class="blankline"></div>
		<!--{/if}-->
		<form method="post" name="loginform" id="loginform" action="{WEBURLPATH}/login.php?action=comfindpass&check">
		<table class="datatable" cellspacing="1">
			<tbody>
				<!-- <tr>
					<th>用户名</th>
					<td>
						<input type="text" name="username" size="32" value="{if isset($webglobal['CPP']['username'])}$webglobal['CPP']['username']{/if}" />
					</td>
				</tr> -->
				<tr>
					<th>E-mail</th>
					<td>
						<input type="text" name="email" size="32" value="{if isset($webglobal['CPP']['email'])}$webglobal['CPP']['email']{/if}" />
					</td>
				</tr>
				<tr>
					<th>申请原因</th>
					<td>
						<textarea name="reason" rows="3" cols="40">{if isset($webglobal['CPP']['reason'])}$webglobal['CPP']['reason']{/if}</textarea>
					</td>
				</tr>
			</tbody>
			<tfoot>
				<tr><th></th><td>
					<button type="submit">提交申请</button>
				</td></tr>
			</tfoot>
		</table>
		</form>
	</div>
	<div class="couponRight">
		
	</div>

<!--{elseif $webglobal['action']=='resetpass'}-->

	<div id="positionBox">
		<div class="left">
			<a href="{WEBURLPATH}/index.php">首页</a>&gt;
			重设密码
		</div>
	</div>
	<div class="contentInfoBox">
		<div class="linetitle">重设密码</div>
		<!--{if !empty($webglobal[CPM])}-->
			<div class="listulstyle">
				<ul>
					<!--{loop $webglobal[CPM] $tempvalue}-->
					<li class="fcolor">$tempvalue</li>
					<!--{/loop}-->
				</ul>
			</div>
			<div class="blankline"></div>
		<!--{/if}-->
		<form method="post" name="loginform" id="loginform" action="{WEBURLPATH}/login.php?action=resetpass&check">
		<input type="hidden" name="code" value="{$webrequest['code']}" />
		<table class="datatable" cellspacing="1">
			<tbody>
				<!-- <tr>
					<th>用户名</th>
					<td>
						<input type="text" name="username" size="32" value="{if isset($webglobal['CPP']['username'])}$webglobal['CPP']['username']{/if}" />
					</td>
				</tr> -->
				<tr>
					<th>E-mail</th>
					<td>
						<input type="text" name="email" size="32" value="{if isset($webglobal['CPP']['email'])}$webglobal['CPP']['email']{/if}" />
					</td>
				</tr>
				<tr>
					<th>输入密码</th>
					<td>
						<input type="password" name="password" size="32" value="" />
						<div>不少于6位</div>
					</td>
				</tr>
				<tr>
					<th>重复密码</th>
					<td>
						<input type="password" name="passwordtwo" size="32" value="" />
					</td>
				</tr>
			</tbody>
			<tfoot>
				<tr><th></th><td>
					<button type="submit">重设密码</button>
				</td></tr>
			</tfoot>
		</table>
		</form>
	</div>
	<div class="couponRight">
		
	</div>

<!--{else}-->
<script type="text/javascript" charset="utf-8" src="{WEBURLPATH}/javascript/base64.js"></script>
<script type="text/javascript">

	function checkpass(){
		var password = $('#password').val();
		var b = new Base64();
		var str = b.encode(password);
		$('#password').val(str);
		return;
	}
</script>
	<div id="positionBox">
		<div class="left">
			<a href="{WEBURLPATH}/index.php">首页</a>&gt;
			用户登录
		</div>
	</div>
	<div class="contentInfoBox">
		<div class="linetitle">用户登录</div>
		<!--{if !empty($webglobal[login_message])}-->
			<div class="listulstyle">
				<ul>
					<!--{loop $webglobal[login_message] $tempvalue}-->
					<li class="fcolor">$tempvalue</li>
					<!--{/loop}-->
				</ul>
			</div>
			<div class="blankline"></div>
		<!--{/if}-->
		<form method="post" name="loginform" onsubmit="checkpass()" id="loginform" action="{WEBURLPATH}/login.php?check">
		<input type="hidden" name="gourl" value="{$webglobal['gourl']}" />
		<table class="datatable" cellspacing="1">
			<tbody>
				<tr>
					<th>用户类型</th>
					<td>
						<input type="radio" class="noborder" name="user_type" id="user_type_0" value="0"{if !isset($webglobal['CPP']['user_type']) || $webglobal['CPP']['user_type']==0} checked="checked"{/if} /><label for="user_type_0">普通用户</label>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" class="noborder" name="user_type" id="user_type_1" value="1"{if isset($webglobal['CPP']['user_type']) && $webglobal['CPP']['user_type']==1} checked="checked"{/if} /><label for="user_type_1">商家</label>
					</td>
				</tr>
				<tr>
					<th>E-mail</th>
					<td>
						<input type="text" name="username" size="32" value="{if isset($webglobal['CPP']['username'])}$webglobal['CPP']['username']{/if}" />
						<!-- <div>用户名 或者 E-mail 均可登录</div> -->
					</td>
				</tr>
				<tr>
					<th>用户密码</th>
					<td>
						<input id="password" type="password" name="password" size="32" value="" />&nbsp;&nbsp;&nbsp;&nbsp;<a href="{WEBURLPATH}/login.php?action=findpass">忘记密码</a>
					</td>
				</tr>
			</tbody>
			<tfoot>
				<tr><th></th><td>
					<button type="submit">登  录</button>
				</td></tr>
			</tfoot>
		</table>
		</form>
	</div>
	<div class="couponRight">
		
	</div>
<!--{/if}-->

{template footer}